package com.ys.service.hr.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSON;
import com.ys.entity.hr.ThrOperateCompanyRatio;
import com.ys.mapper.hr.ThrOperateCompanyRatioMapper;
import com.ys.service.hr.ThrOperateCompanyRatioService;
import com.ys.vo.R;

@Service("thrOperateCompanyRatioService")
public class ThrOperateCompanyRatioServiceImpl implements ThrOperateCompanyRatioService {
	@Autowired
	private ThrOperateCompanyRatioMapper thrOperateCompanyRatioMapper;
	
	@Override
	@Transactional
	public R edit(Map<String, Object> params) throws Exception {
		ThrOperateCompanyRatio entity = JSON.parseObject(JSON.toJSONString(params), ThrOperateCompanyRatio.class);

		thrOperateCompanyRatioMapper.update(entity);
		
		return R.ok("操作成功");
	}
}
